<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
    <head>
        <title>Rasende Roboter</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
        <!-- Bootstrap -->
        <link href="css/map.css" rel="stylesheet" media="screen" />
        <link href="css/bootstrap.min.css" rel="stylesheet"/>
        <link href="css/bootstrap-responsive.min.css" rel="stylesheet"/>
        <link href="css/default.css" rel="stylesheet" />
        <script type="text/javascript" src="js/libs/jquery-2.0.3.min.js"></script>
        <script type="text/javascript" src="js/libs/jquery.qrcode.min.js"></script>
        <script type="text/javascript" src="/socket.io/socket.io.js"></script>
        <script type="text/javascript" src="js/logged.js"></script>
        <script type="text/javascript" src="js/map.js"></script>
        <script type="text/javascript" src="js/countdown.js"></script>
    </head>
    <body onload="init();
            begin();">
        <header class="navbar navbar-fixed-top" role="banner">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand" href="/"><img src="img/logo.png" alt="Logo" /></a>
                </div>
                <nav class="collapse navbar-collapse" role="navigation">
                    <div class="nav navbar-nav navbar-right">
                        <p class="navbar-text">Connecté(e) à la partie __IDGAME__ en tant que __LOGIN__</p>
                        <input id="login" type="hidden" value="__LOGIN__"/>
                        <input id="idGame" type="hidden" value="__IDGAME__"/>
                    </div>
                </nav>
            </div>
        </header>

        <div class="body container">
            <div class="row">
                <div class="col-md-3">
                    <h2>Partie</h2>
                    <p><a id="initMapLink" onclick="initMap();">Réinitialiser la grille</a> (R)</p>
                    <ul id="game">
                        <li>La partie a commencé</li>
                    </ul>
                </div>
                <div class="col-md-6" id="content">
                    <div id="map">
                    </div>
                </div>
                <div class="col-md-3 row">
                    <div class="col-xs-6">
                        <h2>Joueurs</h2>
                        <ul id="players"/>
                        <div id="progressInfo">
                            <h4>Temps restant</h4>
                            <div class="countText">
                                <span id="count"></span> sec
                            </div>
                            <div class="progress progress-striped active">
                                <div class="progress-bar" id="progressBar" role="progressbar"></div>
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-6">
                        <h2>QRCode</h2>
                        <p>Reprendre la partie depuis un appareil mobile</p>
                        <div id="qrcode"></div>
                        <script type="text/javascript">
                            $('#qrcode').qrcode({
                                width: 150,
                                height: 150,
                                text: 'http://' + window.location.host + '/login.xhtml?login=' + $('#login').val() + '&amp;idGame=' + $('#idGame').val()
                            });
                        </script>
                    </div>
                </div>
            </div>
            __FOOTER__
        </div>
        <script src="js/libs/twitter-bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    </body>
</html>